import { request } from './request'

// 我的收藏
export function getCollectList(params) {
  return request({
    url: '/api/collects',
    params
  })
}

// 收藏和取消
export function collectAClear(goodsId) {
  return request({
    url: `/api/collects/goods/${goodsId}`,
    method: 'post'
  })
}
